<template>
     <div class="box">
        <header>
            <van-nav-bar left-arrow title="H币提现" right-text="提现记录" @click-left="fant" @click-right="history"> </van-nav-bar>
        </header>
        <main>
            <div class="cash_box">
                <div class="cash_card">
                     <div class="header_cash">
                        <div>
                            <span>到账银行卡</span>
                        </div>
                        <div>
                            <p>
                            <span>中国建设银行</span>
                            <span style="color: #4B96EB;">当天24点前到账</span>
                        </p>
                        </div>
                     </div>
                     <div class="cent_card">
                        <span style="font-size: 12px;">提现金额</span>
                        <p class="card_number">
                            ￥20
                        </p>
                        <input type="checkbox"><span>全部提现，3050H币，可提现30元</span>
                     </div>
                     <div class="foot_card">
                        <button @click="cash">提现</button>
                     </div>
                </div>
            </div>
        </main>
     </div>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";
const router = useRouter();
const fant = () => {
  router.go(-1);
};

const cash=()=>
{
    router.go(-1);
}

const history=()=>
{
    router.push('/history');
}
</script>

<style scoped>
.box
{
    width: 100%;
    height: 100vh;
}

.cash_box
{
    width: 100%;
    height: 90%;
    padding: 10px; 
    margin-left: 30px;
}

.cash_card
{
    width: 90%;
    height: 300px;
    margin-left: 5%;
    border-radius: 10px;
    margin-top:60px;
    
}

.header_cash
{
    width: 100%;
    height: 80px;
    margin-bottom: 5px;
    line-height: 35px;
    background: #F2F2F2;
    border-radius: 10px 10px 0 0;
    font-size: 12px;
    display: flex;
    justify-content: space-around;
}

.header_cash span
{
    display: block;
}

.cent_card
{
    width: 100%;
    height: 150px;
    background: #F8F8F8;
    align-items: center;
    justify-content: center;
    padding-left: 20px;
}

.card_number
{
    font-size: 50px;
}

.cent_card span
{
    font-size: 10px;
}

.foot_card
{
    width: 100%;
    height: 70px;
    background: #F2F2F2;
    margin-top: 5px;
    border-radius: 0 0 10px 10px;
    align-items: center;
}

.foot_card button
{
    width: 80%;
    height: 30px;
    border-radius: 5px;
    border: none;
    background: #3087EA;
    color: #fff;
    margin-left: 10%;
    margin-top: 20px;
}
</style>